/*
 * =====================================================================================
 *
 *       Filename:  execve2.c
 *
 *    Description:  execve demo 2
 *
 *        Version:  1.0
 *        Created:  04/19/2012 09:40:52 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Zhiyi Wu (Z.W), zhiyiw@uoregon.edu
 *        Company:  University of Oregon
 *
 * =====================================================================================
 */


#include	"unistd.h"
main(){
int ret;
char *cmd[] = { "ls", "-l", "env", (char *)0 };
char *env[] = { "/usr/src",  (char *)0 };

ret = execve ("/bin/ls", cmd, "/usr/src");
}


